import http from "../utils/http";

export function getBlogTypeListAllApi() {
    return http({
        url: '/blog/getBlogTypeAll',
        method: 'get',
    })
}

// 获取博客列表
export function getBlogTextListApi(data) {
    data.searchData.blogStatus = '1'
    return http({
        url: '/blog/getBlogTextList',
        method: 'post',
        data: data
    })
}

// 修改博客浏览次数和评论次数
export function setViewAndComment(data) {
    return http({
        url: '/blog/setViewCount',
        method: 'post',
        data: data
    })
}

// 记录当前访问ip
export function getDataStatistic(data) {
    return http({
        url: '/dataStatistic/getDataStatistic',
        method: 'get',
    })
}
